import { Picker } from 'emoji-mart';

export default function Emoji(props: any) {
  const onSelectEmoji = (emoji: any) => {
    console.log(emoji);
    props.select && props.select(emoji.native);
  };
  return (
    <Picker
      set="apple"
      title="Pick your emoji…"
      emoji="grinning"
      // native={true}
      i18n={{
        search: 'Recherche',
        categories: { search: 'Résultats de recherche', recent: 'Récents' },
      }}
      onSelect={onSelectEmoji}
    />
  );
}
